﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Vote
{
 
    public class User
    {
        public int ID { get; set; }
        public string Account { get; set; }
        public string Password { get; set; }
        public string Nickname { get; set; }

        public User(string Account,string Password,string Nickname)
        {
            this.Account  = Account;
            this.Password = Password;
            this.Nickname = Nickname;
        }
        public int Login(string Account,string Password)
        {
            if (this.Account == Account && this.Password == Password)
                return 1;
            else
                return -1;
        }
    }
}
